# Maintainer: Avis Orsetti <avisorsetti@riseup.net>
# Contributor: Dominika Liberda <ja@sdomi.pl>
pkgname=menumaker
pkgver=0.99.14
pkgrel=1
pkgdesc="Heuristics-driven menu generator for Deskmenu, FluxBox, IceWM, OpenBox, WindowMaker and XFCE"
url="https://menumaker.sourceforge.net/"
arch="all"
license="BSD-2-Clause"
depends="python3"
options="!check" # No tests provided
source="https://downloads.sourceforge.net/menumaker/menumaker-$pkgver.tar.gz"

prepare() {
	default_prepare
	./configure --prefix=/usr --infodir=/usr/share/info
}

build() {
	make
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make DESTDIR="$pkgdir" pkgdatadir=/usr/lib/menumaker install
	make DESTDIR="$pkgdir" PYTHON_BIN="python3" pkgdatadir=/usr/lib/menumaker install-exec-local
	rm -rf "$pkgdir"/usr/share/info
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/license
}

sha512sums="
81d44c1917d0fd4cd1c8b7cdd4ce12795fee7cc286959a7fc9dc6f84a096ea850a4348d98b6a7dce153c5d07fdb8b3aaf13f3476a9f34dd56646af3097d406d0  menumaker-0.99.14.tar.gz
"
